﻿using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AlarmModule
{
    /// <summary>
    /// 报警模块
    /// </summary>
    public class AlarmModule : IModule
    {
        private readonly IRegionViewRegistry regionViewRegistry;

        public AlarmModule(IRegionViewRegistry registry)
        {
            this.regionViewRegistry = registry;   
        }

        public void Initialize()
        {
            regionViewRegistry.RegisterViewWithRegion("MainRegion", typeof(Views.AlarmView));
        }
    }
}
